5.3.3 APPX Application Design Manual

+ Chapter 1-1: Overview of Application Design
+ Chapter 1-2: Getting Started
+ Chapter 1-3: Data Dictionary
+ Chapter 1-4: Understanding Process Design
+ Chapter 1-5: Interprocess Communication
+ Chapter 1-6: Customizing Your Application
+ Chapter 1-7: The Documentation Facility
+ Chapter 1-8: Application Design Tools
+ Chapter 2-1: Data Dictionary Overview
+ Chapter 2-2: Data Dictionary Concepts
+ Chapter 2-3: Domains
- Chapter 2-4: Files and Fields
+ Chapter 2-5: Work Fields
+ Chapter 3-1: Overview of APPX Processes
+ Chapter 3-2: Getting Started
+ Chapter 3-3: Process Definition
+ Chapter 3-4: Menu Processes
+ Chapter 3-5: Job Processes
+ Chapter 3-6: Input Processes
+ Chapter 3-7: Output Processes
+ Chapter 3-8: Update Processes
+ Chapter 3-9: Query Processes
+ Chapter 3-10: Inquiry Processes
+ Chapter 3-11: Status Processes
+ Chapter 3-12: Subroutine Processes
+ Chapter 3-13: Table Processes
+ Chapter 3-14: Automatic and Optional Children
+ Chapter 3-15: Using the Image Editor
+ Chapter 3-16: Using GUI Features of the Image Editor
+ Chapter 3-17: Using Event Points
+ Chapter 4-1: ILF Integration
+ Chapter 4-2: True/False Status Indicators
+ Chapter 4-3: Specifying Statements
+ Chapter 4-4: The ILF Editor
+ Chapter 4-5: The Appx ILF Debugger
+ Chapter 4-6: ILF Keyword Reference
+ Chapter 4-7: Predefined Fields
+ Chapter 4-8: Runtime Subroutine's and Predefined Processes
+ Chapter 4-9: Appx Chart Director API

Chapter 2-4: Files and Fields

Files Rules Option


The Rules option from the Files/Fields screen accesses the File Level Event Points for Rules overlay shown below. This overlay provides options to access the ILF Editor for APPX event points.If statements are defined in an event point, the respective text on the screen is highlighted. This option allows you to define ILF code that is executed whenever the designated file is accessed or updated in any APPX process.

File-Level Event Points for Rules Overlay

The File Level Event Points for Rules overlay contains the following options:

File Open

file open accesses the ILF editor for the File Open event point. Upon completion, you are returned to the Event Points overlay. This code is executed whenever the file is opened by a process.

Post Read

post read accesses the ILF editor for the Post Readevent point. Upon completion, you are returned to the Event Points overlay. This code is executed immediately following the execution of a read statement on the file (READ, READNEXT, or BEG READ) or automatic read of the file when designated as a PCF file.

Pre-Update

pre-update accesses the ILF editor for the Pre-Update event point. Upon completion, you are returned to the Event Points overlay. This code is executed immediately prior to the issuance of an update statement on the file (WRITE, REWRITE or DELETE) or automatic update of the file when designated as a PCF file.

Post Update

post update accesses the ILF editor for the Post Update event point. Upon completion, you are returned to the Event Points overlay. This code is executed immediately following the execution of an update statement on the file ((WRITE, REWRITE or DELETE) or automatic update of the file when designated as a PCF file.

File Close

file close accesses the ILF editor for the File Close event point. Upon completion, you are returned to the Event Points overlay. This code is executed whenever the file is closed by a process.

Using file-level event points localizes complex update rules into a single location, assuring that your code executes for every update. Since these event points execute within the context of a file-level process, they share very little data with other processes. In fact, the only thing shared between a file-level process and the 'foreground' process is the PCF record buffer. For example, in the Post Read event point, you have access to the contents of the record just retrieved. If changes are made in the record buffer, those changes are reflected in the foreground process. In the Pre-Update event point, you have access to the PCF record buffer as delivered by the foreground process. File-level event points use their own copies of work variables so even work fields are not shared with other processes.

To create file level event points, simply select the option corresponding to the desired execution point. See the Event Points and File-Level Event Points sections for further information.

Application Design Manual                                         "Powered by Appx Software"

1007

©2006 By APPX Software, Inc. All Rights Reserved